package cn.bdqn.mapper;
import org.apache.ibatis.annotations.Param;

import cn.bdqn.domain.Recipe;

import java.util.List;

public interface RecipeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Recipe record);

    /**
     * 添加一条处方信息
     * @param record
     * @return
     */
    int insertSelective(Recipe record);

    Recipe selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Recipe record);

    int updateByPrimaryKeyWithBLOBs(Recipe record);

    int updateByPrimaryKey(Recipe record);

    List<Recipe> selectAll();

    int updateIfallocationById(@Param("id")Integer id);


    /**
     * 根据挂号id修改支付状态
     * @param regisId
     * @return
     */
    int updateByRegisId(String regisId);

    /**
     * 根据regisId查询处方信息
     * @param regisId
     * @return
     */
    Recipe selectByRegisId(String regisId);

    List<Recipe> selectAllByRegisId(@Param("regisId")String regisId);





}